<div id='midiv4'> 

<?/*

$db = DbBase::raw_connect();
$login= Session::get_data('login');
$password= Session::get_data('password');
if($Usuarios->exists("login='$login' and password='$password'"))
		{foreach($Usuarios->find("login = '$login' and password='$password' and rol='A'") as $usuario){	
			?>
			<?= stylesheet_link_tag("admin")?>

<div class='main_menu'>
Administraci&oacute;n:

<?= link_to('usuarios')?>

</div>

			<?
			
		}
			
		foreach($Usuarios->find("login = '$login' and password='$password' and (rol='C' or rol='A')") as $usuario){	
		
			
			
			
			

?><?= stylesheet_link_tag("admin")?>

			<div class='main_menu'> 

Contador:

 
<?= link_to('cuotas/arqueo', "Arqueo de Caja")?>


</div>

<?			
		}
		
	foreach($Usuarios->find("login = '$login' and password='$password' and (rol='C' or rol='A' or rol='E')") as $usuario){	
		
			
			
			
			

?><?= stylesheet_link_tag("admin")?>

			<div class='main_menu'> 

Empleado:
 
 <?=link_to('actainfraccion', "Acta de Infracci&oacute;n")?>
<?=link_to('plandepago/buscar_acta', "Buscar Acta")?>
  <?=link_to('cuotas/calcular', "Calcular Cuota")?>

<?= link_to('plandepago/crearplandepago',"Crear Plan de Pago")?>
<?= link_to('plandepago/mostrar_plan',"Mostrar Plan de Pago")?>
<?= link_to('pagoespontaneo/crearpagoespontaneo',"Generar Pago Espontaneo")?>
<?= link_to('pagoespontaneo/mostrar_plan',"Mostrar Pago Espont&aacute;neo")?>
<?= link_to('empresa')?>
<?= link_to('localidad')?>
<?= link_to('tipovehiculo', "Tipo de Veh&iacute;culo")?>
<?= link_to('plandepago/inf_acta', "Informe Actas")?>
<?= link_to('plandepago/inf_plan', "Informe Planes")?>
<?=link_to('usuarios/cambio_clave', "Cambio de Clave")?>
 <?=link_to('login/cerrar_sesion', "Cerrar Sesi&oacute;n")?>


</div>

<?			
		}
		
		
		
		
		}
	

?>




<? content() ?>
<? if($Usuarios->exists("login='$login' and password='$password'")){*/?>

<h1>Cambio de Clave</h1>

<?php echo form_remote_tag("usuarios/cambio","update: midiv5") ?>
<table>
	<tr>
		<td aling="right"><strong>Password anterior:</strong></td>
		<td><?php echo password_field_tag("anterior")?></td>
	</tr>
	<tr>
		<td aling="right"><strong>Nuevo password:</strong></td>
		<td><?php echo password_field_tag("nuevo")?></td>
	</tr>
	<tr>
		<td aling="right"><strong>Confirma password:</strong></td>
		<td><?php echo password_field_tag("confirma")?></td>
	</tr>
	<tr>
		<td></td>
		<td><?php echo submit_tag("Cambiar") ?></td>
	</tr>
	
		
		<?php echo end_form_tag() ?>

</tr>
</table>

<div id='midiv5'>

</div>


</div>

<? /*} else {Flash::error("Usted est&aacute; intentando acceder al sistema de manera incorrecta.");
			
	
	
			}
	*/		
?>